package com.person.mengshuai.mytestdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ms
 * @since 2024-08-07
 */
@Getter
@Setter
@TableName("b_data_log")
public class BDataLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @GeneratedValue(strategy = GenerationType.AUTO)
    @TableId("id")
    private String id;

    /**
     * 类名称
     */
    @TableField("class_name")
    private String className;

    /**
     * 方法名称
     */
    @TableField("method_name")
    private String methodName;

    /**
     * 日志类型
     */
    @TableField("type")
    private String type;

    /**
     * 日志描述
     */
    @TableField("description")
    private String description;

    /**
     * 请求ip
     */
    @TableField("ip")
    private String ip;

    /**
     * 请求入参
     */
    @TableField("request_params")
    private String requestParams;

    /**
     * 响应结果
     */
    @TableField("response_result")
    private String responseResult;

    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


}
